<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .header {
            width: 100%;
            margin: 10px;

        }

        .header input {
            width: 80%;
            height: 30px;
            border: none;
            border-radius: 15px;
            outline: none;
            background: #f5f5f5;
            padding-left: 10px;
        }

        .header button {
            background: #fff;
            color: rgb(22, 210, 210);
            border: none;
        }

        .title {
            width: 100%;
            padding-left: 10px;
            font-weight: bold;
        }

        .list {
            width: 100%;
            margin-top: 10px;
        }

        .list span {
            width: 100px;
            height: 30px;
            background-color: #f4f4f4;
            margin: 10px;
            text-align: center;
            line-height: 30px;
            display: inline-block;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="header">
            <input type="text" placeholder="搜索发现更多" v-model="content">
            <button @click="add">搜索</button>
        </div>
        <div class="title">历史搜索</div>
        <div class="list">
            <span v-for="(item,index) in list">{{item}}</span>
        </div>
    </div>



    <script src="vue-2.5.21.js"></script>
    <script src="index-搜索.js"></script>
</body>

</html>